package com.braveman.im.ui.adapter;

import android.content.Context;

import com.braveman.im.bean.LocationBean;
import com.braveman.im.ui.holder.LocationListViewHolder;
import com.braveman.im.ui.holder.MessageListViewHolder;
import com.ht.baselibs.ui.adapter.DefaultAdapter;
import com.ht.baselibs.ui.base.BaseViewHolder;

import java.util.List;

public class MessageAdapter extends DefaultAdapter<LocationBean> {
    private Context mContext;

    public MessageAdapter(Context context, List<LocationBean> data) {
        super(context, data);
        mContext = context;
    }

    @Override
    protected BaseViewHolder<LocationBean> getViewHolder(int position, List<LocationBean> mData) {
        return new MessageListViewHolder(mContext);
    }
}
